const sidebar = {
  "/": [
    {
      text: "组件",
      children: [
        { text: "Button 按钮", link: "/components/button/" },
        { text: "Card", link: "/components/card/" },
      ],
    },
    { text: "导航" },
  ],
};
const config = {
  title: "MY-UI",
  description: "组件库搭建",
  themeConfig: {
    nav: [
      { text: "指南", link: "/guild/installation" },
      { text: "组件", link: "/components/button/" },
    ],
    sidebar,
  },
  markdown: {
    config: (md) => {
      // 这里可以使用 markdown-it 插件，vitepress-theme-demoblock就是基于此开发的
      const { demoBlockPlugin } = require("vitepress-theme-demoblock");
      md.use(demoBlockPlugin);
    },
  },
};

export default config;
